package pcjavanet.mobilesell.persistence;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import pcjavanet.mobilesell.model.PageBean;
import pcjavanet.mobilesell.model.Unit;
import pcjavanet.mobilesell.model.UnitExample;

public interface UnitMapper {
    int countByExample(UnitExample example);

    int deleteByExample(UnitExample example);

    int deleteByPrimaryKey(Integer dbid);

    int insert(Unit record);

    int insertSelective(Unit record);

    List<Unit> selectByExample(UnitExample example);

    Unit selectByPrimaryKey(Integer dbid);

    int updateByExampleSelective(@Param("record") Unit record, @Param("example") UnitExample example);

    int updateByExample(@Param("record") Unit record, @Param("example") UnitExample example);

    int updateByPrimaryKeySelective(Unit record);

    int updateByPrimaryKey(Unit record);

    List<Unit> getOnePageBeans(@Param("example") UnitExample example, @Param("pageBean") PageBean pageBean);

    int getTotalRecords(@Param("example") UnitExample example, @Param("pageBean") PageBean pageBean);

    List<Unit> selectByExamplePage(@Param("example") UnitExample example, @Param("pageBean") PageBean pageBean);
}